package com.huike.business.mapper;

import com.huike.business.domain.TbBusiness;
import com.huike.business.domain.TbBusinessTrackRecord;
import com.huike.common.annotation.AutoFill;
import com.huike.common.enums.DaoOperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wwq
 * @Date: 2023/07/12/16:46
 * @Description:
 */
@Mapper
public interface TbBusinessTrackRecordMapper {



    /**
     * 新增商品跟进记录
     * @param tbBusinessTrackRecord
     */
    @AutoFill(DaoOperationType.INSERT)
    int add(TbBusinessTrackRecord tbBusinessTrackRecord);

    /**
     * 查询商机跟进记录
     * @param id
     * @return
     */
   List<TbBusinessTrackRecord> getBusinessTrackRecord(Long id);

    /**
     * 获取商机跟进记录详细信息
     * @param id
     * @return
     */
    TbBusinessTrackRecord getById(Long id);
}
